package cn.iocoder.yudao.module.erp.controller.admin.purchaseplan.vo.purchaseengineeringdetail;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;
import java.math.BigDecimal;

@Schema(description = "管理后台 - 工程采购计划明细新增/修改 Request VO")
@Data
public class PurchaseEngineeringDetailSaveReqVO {

    @Schema(description = "采购详情ID", requiredMode = Schema.RequiredMode.REQUIRED, example = "1457")
    private Long id;

    @Schema(description = "采购计划ID", requiredMode = Schema.RequiredMode.REQUIRED, example = "17837")
    @NotNull(message = "采购计划ID不能为空")
    private Long planId;

    @Schema(description = "采购计划编号(系统自动生成)")
    private String planNo;

    @Schema(description = "采购类型", requiredMode = Schema.RequiredMode.REQUIRED, example = "SERVICE/EQUIPMENT/ENGINEERING/MATERIAL/DIRECT/MINOR")
    @NotEmpty(message = "采购类型不能为空")
    private String purchaseType;

    @Schema(description = "采购内容(详细)")
    private String purchaseContent;

    @Schema(description = "预估采购数量")
    private Integer estimatedQuantity;

    @Schema(description = "总价限价(单位：万元，人民币)")
    private BigDecimal totalPriceLimit;

    @Schema(description = "备注", example = "你说的对")
    private String remark;

}